import { BasicLayout, BlankLayout } from '@/views/layouts'
export default {
  path: '/exception',
  name: 'exception',
  component: BasicLayout,
  redirect: '/exception/404',
  meta:{
    title: '异常',
    type: 1
  },
  children: [
    {
      path: '/exception/404',
      name: 'exception-404',
      component: () => import(/* webpackChunkName: 'exception404' */ '@/views/exception/Exception404'),
      meta: {
        title: '404无法找到页面',
        keepAlive: false,
        sideLayout: false,
        headLayout: false
      }
    },
    {
      path: '/exception/403',
      name: 'exception-403',
      component: () => import(/* webpackChunkName: 'exception403' */ '@/views/exception/Exception403'),
      meta: {
        title: '403拒绝访问',
        keepAlive: false,
        sideLayout: false,
        headLayout: false
      }
    },
    {
      path: '/exception/500',
      name: 'exception-500',
      component: () => import(/* webpackChunkName: 'exception500' */ '@/views/exception/Exception500'),
      meta: {
        title: '500服务器的内部错误',
        keepAlive: false,
        sideLayout: false,
        headLayout: false
      }
    },
    {
      path: '/exception/content',
      name: 'exception-content',
      component: BlankLayout,
      redirect: '/exception/content/404',
      children: [
        {
          path: '/exception/content/404',
          name: 'exception-content-404',
          component:  () => import(/* webpackChunkName: 'exceptioncontent404' */ '@/views/exception/Exception404'),
          meta: {
            title: '404无法找到页面',
            keepAlive: false,
            sideLayout: false
          }
        },
        {
          path: '/exception/content/403',
          name: 'exception-content-403',
          component:  () => import(/* webpackChunkName: 'exceptioncontent403' */ '@/views/exception/Exception403'),
          meta: {
            title: '403拒绝访问',
            keepAlive: false,
            sideLayout: false
          }
        },
        {
          path: '/exception/content/500',
          name: 'exception-content-500',
          component:  () => import(/* webpackChunkName: 'exceptioncontent500' */ '@/views/exception/Exception500'),
          meta: {
            title: '500服务器的内部错误',
            keepAlive: false,
            sideLayout: false
          }
        }
      ]
    }
  ]
}
